5223dc469618892cd1a52f80fc60a17a541fb7fb,modules/utils/src/main/java/org/springside/modules/utils/io/FileUtil.java,FileUtil,moveFile,#File#File#,152

Before Change


	 * 如果文件�存在或者是目录,��修改.
	 */
	public static void moveFile(@Nullable File from, File to) throws IOException {
		if (isFileExists(from)) {
			Files.move(from, to);
		}
	}

After Change


	 * 文件移动/é‡?命å??.
	 */
	public static void moveFile(@NotNull File from, @NotNull File to) throws IOException {
		Validate.isTrue(isFileExists(from), from + " is not exist or not a file");
		Validate.notNull(to);
		Validate.isTrue(!isDirExists(to), to + " is  exist but it is a dir");